package com.dlut.java;

import java.util.Scanner;

/**
 * @Author: LiuHeng
 * @Description:
 * @Date: 2022-09-04 17:29
 */
public class Test5 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int k = in.nextInt();
        int[] u = new int[m];
        int[] v = new int[m];
        int[] w = new int[m];
        for (int i = 0; i < m; i++) {
            u[i] = in.nextInt();
        }
        for (int i = 0; i < m; i++) {
            v[i] = in.nextInt();
        }
        for (int i = 0; i < m; i++) {
            w[i] = in.nextInt();
        }
        System.out.println(1);
    }
}
